package com.draemon.haixiawenti.repository;

import com.yangzcp.userpojo.News_say;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * <p></p>
 *
 * @author  yangz
 * @date    2016/11/13
 * @version latest
 */
public interface News_SayRepository extends JpaRepository<News_say, Integer>{
    @Query("from News_say where ref_news_say.id=?1  order by create_time desc")
    public List<News_say> findCond(Integer tieid);
}
